<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class RollReturn extends Model
{
    use SoftDeletes;
    // use SoftDeletes;
    protected $table = 'roll_return';
    protected $fillable = ['user_id', 'roll_id'];

    protected $casts = [
        'created_at' => 'date:Y-m-d',
        'updated_at' => 'date:Y-m-d',
    ];

    public function roll_master()
    {
        $this->belongsTo('RollMaster', 'roll_id');
    }


}
